home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZPRNPTR.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
825b
|
29 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzprnptr │
│Print out a any data object. i.e. array, structure, etc. │
│Synopsis: │
│ struct treg wreg; │
│ . │
│ . │
│ . │
│ jzprnptr(&wreg,"%02x",sizeof(wreg)); │
│ │
│ Synopsis: │
│ wreg : the data item to print; │
│ second parm is the control string │
│ third argument is sizeof the structure │
│ │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzprnptr(fptr,fctrl,flength)
char *fptr;
char *fctrl;
unsigned int flength;
{
while (flength--)
printf(fctrl,*fptr++);
}